﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Homework.Windows</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.2.0/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.2.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.2.0/js/ui.js"></script>

    <!-- Homework.Windows references -->
    <link href="/css/default.css" rel="stylesheet" />
    <script src="/js/default.js"></script>
</head>
<body>
    <p id="newP">
    <div id="newDiv">
    <input type="text" name="fname" placeholder="First Name" />
    <button onClick="b1()" name="buttonOne" >CLick me</button>
    <button onClick="b2()" name="buttonTwo" >CLick me 2</button>
        </p>
    <script>
        var arrayOne = [];
        function b1() {
            arrayOne.push(document.getElementsByName("fname").value);
        }
        function b2() {
            alert(arrayOne.join("\n"));
        }
    </script>
</body>
</html>
